package com.study.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (Business)实体类
 *
 * @author makejava
 * @since 2022-09-26 04:26:44
 */
@Data
@TableName(value = "business")
public class Business implements Serializable {
    private static final long serialVersionUID = -91445316459038866L;
    @TableId(value = "business_id",type = IdType.AUTO)
    private Integer businessId;
    @TableField(value = "business_title")
    private String businessTitle;
    @TableField(value = "business_source")
    private String businessSource;
    @TableField(value = "business_publish_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date businessPublishTime;
    @TableField(value = "business_news_context")
    private String businessNewsContext;
    @TableField(value = "business_read_nums")
    private Integer businessReadNums;
    @TableField(value = "business_likes_nums")
    private Integer businessLikesNums;
    @TableField(value = "business_collect_nums")
    private Integer businessCollectNums;

}

